package com.linln.modules.activityticket.service;

import com.linln.modules.activityticket.domain.ActivityTicket;
import com.baomidou.mybatisplus.extension.service.IService;
import com.linln.modules.system.domain.User;

import java.util.List;
import java.util.Map;

/**
 * @author : pengliang
 * @version V1.0
 * @Project: timo
 * @Package com.linln.modules.activityticket.service
 * @Descriptio /**
 * @Project: timo
 * @Package com.linln.modules.activityticket.service
 * @Description: TODO
 * @date Date : 2020年12月23日 15:51
 */

public interface ActivityTicketService extends IService<ActivityTicket> {

    //添加活动券
    boolean addActivityTicketService(ActivityTicket activityTicket);

    //批量添加活动券
    void batchAddActivityTicketService(List<ActivityTicket> activityTicketList,List<User> userList);

    //删除活动券
    boolean delActivityTicketService(String activityTicketId);

    //更新活动券
    boolean updateActivityTicketService(ActivityTicket activityTicket);

    //获取活动券
    Map<String, Object> getActivityTicket(Integer pageNum, Integer limit, String activityTicketName);

    //使用规则是否被活动券关联
    boolean useRuleIsItAssociatedByActicityTicket(String useRuleId);

    //获取可以赠送用户优惠券
    List<ActivityTicket> getCanGiveActivity();


    //减库存
    int buyIntegralService(String at_id);
}
